package com.class04.controller;

import com.class04.entity.Student;
import com.class04.service.StudentService;
import com.class04.service.impl.StudentServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

import java.util.List;

@Controller
public class StudentController {
    @Autowired
    private StudentService studentService ;
//    private StudentService studentService = new StudentServiceImpl();

    public void findAll() {
        List<Student> all = studentService.findAll();
        System.out.println("all = " + all);

    }
}
